Online Sorted Range Reporting

نویسندگان

  • Gerth Stølting Brodal
  • Rolf Fagerberg
  • Mark Greve
  • Alejandro López-Ortiz
چکیده

We study the following one-dimensional range reporting problem: On an array A of n elements, support queries that given two indices i ≤ j and an integer k report the k smallest elements in the subarray A[i..j] in sorted order. We present a data structure in the RAM model supporting such queries in optimal O(k) time. The structure uses O(n) words of space and can be constructed in O(n log n) time. The data structure can be extended to solve the online version of the problem, where the elements in A[i..j] are reported one-by-one in sorted order, in O(1) worst-case time per element. The problem is motivated by (and is a generalization of) a problem with applications in search engines: On a tree where leaves have associated rank values, report the highest ranked leaves in a given subtree. Finally, the problem studied generalizes the classic range minimum query (RMQ) problem on arrays.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Sorted Range Reporting

We consider a variant of the orthogonal range reporting problem when all points should be reported in the sorted order of their x-coordinates. We show that reporting two-dimensional points with this additional condition can be organized (almost) as efficiently as the standard range reporting. Moreover, our results generalize and improve the previously known results for the orthogonal range succ...

متن کامل

Sorted Range Reporting Revisited

We consider the two-dimensional sorted range reporting problem. Our data structure requires O(n lg lgn) words of space and O(lg lg n+ k lg lg n) query time, where k is the number of points in the query range. This data structure improves a recent result of Nekrich and Navarro [8] by a factor of O(lg lgn) in query time, and matches the state of the art for unsorted range reporting [1].

متن کامل

Run Generation Revisited: What Goes Up May or May Not Come Down

We revisit the classic problem of run generation. Run generation is the first phase of external-memory sorting, where the objective is to scan through the data, reorder elements using a small buffer of size M , and output runs (contiguously sorted chunks of elements) that are as long as possible. We develop algorithms for minimizing the total number of runs (or equivalently, maximizing the aver...

متن کامل

تأثیر کیفیت گزارشگری مالی اینترنتی و ویژگی‌های شرکت بر محتوای اطلاعاتی ارزش بازار حقوق صاحبان سهام

استفاده از اینترنت به عنوان یکی از کانال‌های پخش اطلاعات شرکت‌ها، پدیده‌ای است که در سال‌های اخیر در حال رشد و پیشرفت بوده است. اطلاعات حسابداری نیز در بازارهای سرمایه دارای ارزش بالایی بوده و بازار سرمایه به این اطلاعات تکمیل‌کننده و همچنین به گزارش‌های حسابداری منتشر شده نیاز دارد. گزارشگری اینترنتی نیز یکی از منابع مهم اطلاعاتی می‌باشد که به طور بالقوه؛ دیگر گزارش‌های حسابداری منتشر شده در ب...

متن کامل

Durham Research Online

This paper explores the central role of computerised code in shaping the social and geographical politics of inequality in advanced societies. Arguing that ‘softwaresorting’ techniques are now being widely applied in efforts to try and separate privileged and marginalised groups and places across a wide range of sectors and domains, the paper analyses recent research addressing three examples o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009